//
//  netManager.h
//  tcpoctest
//
//  Created by gump on 10/18/12.
//  Copyright (c) 2012 gump. All rights reserved.
//

#import <Foundation/Foundation.h>
@class LogicSB;
@class FirCirSendCommentInfo;

@class sendFirCirBgImage;
@class sendFirCirGetBgImage;
@class sendNewsLength;
@class sendFirCirGetID;
@class sendPotocol;
@class sendFirCirGetNews;
@class sendFirCirNewNews;
@class sendFirCirPicture;
@class sendFirCirComment;
@class sendFirCirDelNew;


@class sendOnlineP;
@class sendLogin;
@class sendLoginBypp;
@class sendconfig;
@class sendQuitLogin;
@class sendFirCirGetAllComment;

@class sendGiftInfo;
@class sendGiftListID;
@class sendGiftSend;
@class sendGiftGetStroage;
@class sendGiftListLength;

@class sendnearpeople;

@class sendAddFirend;
@class sendFirendSearch;
@class sendFirendDelete;

@class sendPersonSetName;
@class sendPersonPassWord;
@class sendPersonSetSex;
@class sendPersonSetAge;
@class sendPersonSetPC;
@class sendPersonSetCheck;
@class sendPersonSetSign;
@class sendPersonHeadImage;
@class sendPersonSetMail;
@class sendPersonReadCoin;
@class sendPersonToken;
@class sendPersonDistroble;

@class sendChatText;
@class sendChatImage;
@class sendChatVoice;
@class sendChatRead;

@class sendHeadImageSmall;
@class sendHeadImageBig;

@class sendReadCare;
@class sendReadBeCare;

@class sendSearchPPNum;
@class sendReport;

@class sendRLRichDay;
@class sendRLRichWeek;
@class sendRLRichMonth;
@class sendRLRRichQuarter;
@class sendRLRRichYear;
@class sendRLGlamourDay;
@class sendRLGlamourWeek;
@class sendRLGlamourMonth;
@class sendRLGlamourQuarter;
@class sendRLGlamourYear;

@class sendTaskQuery;
@class sendTaskComplete;

@class sendMessageReceipt;

@class sendTelpGetUser;
@class sendTelepLight;
@class sendTelepCandle;

//qq
@class sendqq;

@interface netManager : NSObject
{
    LogicSB *sb;
}
//fircir
@property(strong,nonatomic) sendFirCirBgImage       *sendFCBgI;
@property(strong,nonatomic) sendFirCirGetBgImage    *sendFCGetBGI;
@property(strong,nonatomic) sendNewsLength          *sendFCNewL;
@property(strong,nonatomic) sendFirCirGetID         *sendFCGetID;
@property(strong,nonatomic) sendPotocol             *sendp;
@property(strong,nonatomic) sendFirCirGetNews       *sendFCGetNews;
@property(strong,nonatomic) sendFirCirNewNews       *sendFCNewNews;
@property(strong,nonatomic) sendFirCirPicture       *sendFCPic;
@property(strong,nonatomic) sendFirCirComment       *sendFCComment;
@property(strong,nonatomic) sendFirCirDelNew        *sendFCDelNew;

@property(strong,nonatomic) sendOnlineP             *sendonline;
@property(strong,nonatomic) sendLogin               *sendlonginbymail;
@property(strong,nonatomic) sendLoginBypp           *sendloginpp;
@property(strong,nonatomic) sendconfig              *sendc;
@property(strong,nonatomic) sendQuitLogin           *sendquitl;
@property(strong,nonatomic) sendFirCirGetAllComment *sendFCGetAC;
//send gift
@property(strong,nonatomic) sendGiftListID          *sendgiftLID;
@property(strong,nonatomic) sendGiftInfo            *sendgiftI;
@property(strong,nonatomic) sendGiftSend            *sendgiftS;
@property(strong,nonatomic) sendGiftGetStroage      *sendgiftStroage;
@property(strong,nonatomic) sendGiftListLength      *sendgiftLL;

@property(strong,nonatomic) sendnearpeople          *sendNP;

//send firend
@property(strong,nonatomic) sendAddFirend           *sendFirendA;
@property(strong,nonatomic) sendFirendSearch        *sendFirendS;
@property(strong,nonatomic) sendFirendDelete        *sendFirendD;

//send person
@property(strong,nonatomic) sendPersonSetName       *sendPersonSN;
@property(strong,nonatomic) sendPersonPassWord      *sendPersonPS;
@property(strong,nonatomic) sendPersonSetSex        *sendPersonSS;
@property(strong,nonatomic) sendPersonSetAge        *sendPersonA;
@property(strong,nonatomic) sendPersonSetPC         *sendPersonSPC;
@property(strong,nonatomic) sendPersonSetCheck      *sendPersonSC;
@property(strong,nonatomic) sendPersonSetSign       *sendPersonSSign;
@property(strong,nonatomic) sendPersonHeadImage     *sendPersonHI;
@property(strong,nonatomic) sendPersonSetMail       *sendPersonSM;
@property(strong,nonatomic) sendPersonReadCoin      *sendPersonRC;
@property(strong,nonatomic) sendPersonToken         *sendPersonT;
@property(strong,nonatomic) sendPersonDistroble     *sendPersonDisTro;

//send chat
@property(strong,nonatomic) sendChatText            *sendCT;
@property(strong,nonatomic) sendChatImage           *sendCI;
@property(strong,nonatomic) sendChatVoice           *sendCV;
@property(strong,nonatomic) sendChatRead            *sendCR;

//send headimage
@property(strong,nonatomic) sendHeadImageSmall      *sendHISmall;
@property(strong,nonatomic) sendHeadImageBig        *sendHIBig;

//read care
@property(strong,nonatomic) sendReadCare            *sendRC;
@property(strong,nonatomic) sendReadBeCare          *sendRBC;

@property(strong,nonatomic) sendSearchPPNum         *sendSPP;
@property(strong,nonatomic) sendReport              *sendR;

//ranking list
@property(strong,nonatomic) sendRLRichDay           *sendRLRDay;
@property(strong,nonatomic) sendRLRichMonth         *sendRLRMonth;
@property(strong,nonatomic) sendRLRichWeek          *sendRLRWeek;
@property(strong,nonatomic) sendRLRRichQuarter      *sendRLRQuarter;
@property(strong,nonatomic) sendRLRRichYear         *sendRLRYear;
@property(strong,nonatomic) sendRLGlamourDay        *sendRLGDay;
@property(strong,nonatomic) sendRLGlamourWeek       *sendRLGWeek;
@property(strong,nonatomic) sendRLGlamourMonth      *sendRLGMonth;
@property(strong,nonatomic) sendRLGlamourQuarter    *sendRLGQuarter;
@property(strong,nonatomic) sendRLGlamourYear       *sendRLGYear;
//task
@property(strong,nonatomic) sendTaskQuery           *sendTaskQ;
@property(strong,nonatomic) sendTaskComplete        *sendTaskC;
//public
@property(strong,nonatomic) sendMessageReceipt      *sendMsgReceipt;
//telepathy
@property(strong,nonatomic) sendTelpGetUser         *sendTeleGetUser;
@property(strong,nonatomic) sendTelepLight          *sendTelepL;
@property(strong,nonatomic) sendTelepCandle         *sendTelepC;
//qq
@property(strong,nonatomic) sendqq                  *sendQQConfig;

+(netManager*)sharedNetManager;

-(void)creatConnect;
-(void)closeConnect;
-(void)ReConnect;

-(PACKET *)recvPacket;
-(void)Package:(char *)date withLength:(int)len;

-(void)SendHeartBeat;

-(bool)isConnect;
-(void)SendQuitDirectly;

-(void)reloginBySend;

@end
